import AutowireMapping from './autowire-mapping'
class AutowireHolder {
    private mapping: Map<Function, AutowireMapping> = new Map()
    cook(clazz: Function, field: string, need: Function) {
        let map = this.mapping.get(clazz)
        if (!map) {
            map = new AutowireMapping(clazz)
        }
        map.add([field, need])
    }
}

export default new AutowireHolder()
